﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Models
{
    public class sensors
    {
        public sensors()
        { }
        #region Model
        private int _id;
        private string _sensor_code;
        private string _sensor_name;
        private string _sensor_sn;
        private string _gateway_id;
        private string _sensor_type;
        private string _sensor_mode;
        private string _sensor_topic;
        private string _sensor_subscribe;
        private int? _flag;
        private int? _online_status;
        /// <summary>
        /// 
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 终端编码
        /// </summary>
        public string sensor_code
        {
            set { _sensor_code = value; }
            get { return _sensor_code; }
        }
        /// <summary>
        /// 终端名称
        /// </summary>
        public string sensor_name
        {
            set { _sensor_name = value; }
            get { return _sensor_name; }
        }
        /// <summary>
        /// 终端序列号
        /// </summary>
        public string sensor_sn
        {
            set { _sensor_sn = value; }
            get { return _sensor_sn; }
        }
        /// <summary>
        /// 网关ID
        /// </summary>
        public string gateway_id
        {
            set { _gateway_id = value; }
            get { return _gateway_id; }
        }
        /// <summary>
        /// 终端分类
        /// </summary>
        public string sensor_type
        {
            set { _sensor_type = value; }
            get { return _sensor_type; }
        }
        /// <summary>
        /// 终端类型
        /// </summary>
        public string sensor_mode
        {
            set { _sensor_mode = value; }
            get { return _sensor_mode; }
        }
        /// <summary>
        /// 终端主题
        /// </summary>
        public string sensor_topic
        {
            set { _sensor_topic = value; }
            get { return _sensor_topic; }
        }
        /// <summary>
        /// 终端订阅
        /// </summary>
        public string sensor_subscribe
        {
            set { _sensor_subscribe = value; }
            get { return _sensor_subscribe; }
        }
        /// <summary>
        /// 启用状态
        /// </summary>
        public int? flag
        {
            set { _flag = value; }
            get { return _flag; }
        }
        /// <summary>
        /// 使用状态
        /// </summary>
        public int? online_status
        {
            set { _online_status = value; }
            get { return _online_status; }
        }
        #endregion Model

    }
}
